package com.whxy02.tolearn.app.beans;

//import javax.persistence.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 问题收藏表
 */


//@Entity
//@Table(name="tb_question_collection")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_question_collection")
public class QuestionCollection {
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "question_collection_id",type = IdType.AUTO)
    private Integer questionCollectionId;
    private Integer userId=1;
    private Integer questionId=1;
    private Date createTime=new Date();

}
